package io.renren.modules.dangan.controller;

import io.renren.common.annotation.FlhFilter;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.dangan.service.DaDjgllService;
import io.renren.modules.dangan.service.DaIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @auther guqianbin
 * @date 2019/9/15 16:22
 **/
@RestController
@RequestMapping("/indexInfo")
@CrossOrigin
public class DaIndexController {

    @Autowired
    private DaIndexService daIndexService;

    /**
     * 档案首页统计信息
     */
    @RequestMapping("/daCountInfo")
    public R daCountInfo() {
       Map<String,Object> daCountInfo=daIndexService.indexCountInf();
        return R.ok().put("indexInfo",daCountInfo);
    }

}
